package com.xn.app.muying.activity;

import android.content.Intent;
import android.os.Bundle;
import android.text.Html;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.xn.app.muying.R;
import com.xn.app.muying.util.BaseActivity;
import com.zhuge.analysis.stat.ZhugeSDK;

/**
 * 产检项详情
 * Created by gaoge on 2017/1/11.
 */

public class ChanJianDetailItemActivity extends BaseActivity{

    //标题
    private TextView title_name=null;
    //返回键
    private ImageView img_back=null;
    //详情解释
    private TextView xiangqing_text=null;
    //小提示
    private TextView tishi_text=null;
    //获取动作
    private Intent intent=null;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_chanjian_detail_item);
        initView();
    }

    private void initView() {
        title_name=(TextView) findViewById(R.id.title_name);
        img_back=(ImageView) findViewById(R.id.img_back);
        img_back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });
        xiangqing_text=(TextView) findViewById(R.id.xiangqing_text);
        tishi_text=(TextView) findViewById(R.id.tishi_text);
        intent=getIntent();
        String name=intent.getStringExtra("name");
        String explain=intent.getStringExtra("explain");
        String tip=intent.getStringExtra("tip");
        title_name.setText(Html.fromHtml(String.valueOf(Html.fromHtml(name))));
        xiangqing_text.setText("\u3000\u3000"+Html.fromHtml(String.valueOf(Html.fromHtml(explain))));
        tishi_text.setText("\u3000\u3000"+Html.fromHtml(String.valueOf(Html.fromHtml(tip))));
    }
    @Override
    protected void onResume() {
        super.onResume();
    }
}
